from  OfficialAccountSql import DayEnglihsSql
from  OfficialAccountVideoCrawler import WxDayEnglishVideo

if __name__ == '__main__':
    myEnglishSql=DayEnglihsSql(-1,-1);

    chapters=myEnglishSql.getAllKouYuChapter();
    root = "I:\\学习\\微信公众号\\每日学英语\\音频\\";
    wxMps = WxDayEnglishVideo(root)
    for i in range(len(chapters)):
        chapter = chapters[i];
        title=chapter[1];
        content_url=chapter[3];
        print("title："+chapter[1])
        print("content_url：" + chapter[3])
        wxMps.get_url(content_url,title)